<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Initialization and Information</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Initialization and Information<div class="ingroups"><a class="el" href="../../d1/d1e/group__cuda.html">CUDA-accelerated Computer Vision</a> » <a class="el" href="../../d7/d05/group__cudacore.html">Core part</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d7c/classcv_1_1cuda_1_1DeviceInfo.html">cv::cuda::DeviceInfo</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Class providing functionality for querying the specified GPU properties.  <a href="../../d7/d7c/classcv_1_1cuda_1_1DeviceInfo.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html">cv::cuda::TargetArchs</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Class providing a set of static methods to check what NVIDIA* card architecture the CUDA module was built for.  <a href="../../d9/dee/classcv_1_1cuda_1_1TargetArchs.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga776cf8e0301b18e19be4782754274fe0"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#ga776cf8e0301b18e19be4782754274fe0">cv::cuda::FeatureSet</a> { <br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0ab34c101b8be1bfbf64fe53db6277639d">cv::cuda::FEATURE_SET_COMPUTE_10</a> = 10, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a82461455d1a5663b49d55c4b21c6ff52">cv::cuda::FEATURE_SET_COMPUTE_11</a> = 11, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0abe959647501a9c973592060723fe9d16">cv::cuda::FEATURE_SET_COMPUTE_12</a> = 12, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0ae1996d5cc9efd9d0db1edb987a6b88b0">cv::cuda::FEATURE_SET_COMPUTE_13</a> = 13, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0ac3b86a55893548ec28d6360b38ef78cd">cv::cuda::FEATURE_SET_COMPUTE_20</a> = 20, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0ac46cbea580480b80f48f9a843b1fca98">cv::cuda::FEATURE_SET_COMPUTE_21</a> = 21, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0aeb9eaa4b4a1be83d87212c4afad9bebb">cv::cuda::FEATURE_SET_COMPUTE_30</a> = 30, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a965876faa336b34a95b781129915766d">cv::cuda::FEATURE_SET_COMPUTE_32</a> = 32, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0acb28f583b1a1e680da03ef1363e96301">cv::cuda::FEATURE_SET_COMPUTE_35</a> = 35, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a4e7aa099ce8d9f1b4c26cb9755a17d11">cv::cuda::FEATURE_SET_COMPUTE_50</a> = 50, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a9b148c4a092e640c4e1f5bf54e166c68">cv::cuda::GLOBAL_ATOMICS</a> = FEATURE_SET_COMPUTE_11, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a63dd888f7ac8c7e6716af80bb9580ad5">cv::cuda::SHARED_ATOMICS</a> = FEATURE_SET_COMPUTE_12, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a86553a98540f6a0fb2656730af504693">cv::cuda::NATIVE_DOUBLE</a> = FEATURE_SET_COMPUTE_13, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a22dd302fe5c91cbb63078b4676f58cae">cv::cuda::WARP_SHUFFLE_FUNCTIONS</a> = FEATURE_SET_COMPUTE_30, 
<br/>
  <a class="el" href="../../d8/d40/group__cudacore__init.html#gga776cf8e0301b18e19be4782754274fe0a2d8ef1fc50ce9e89ea1e058b6ba9df47">cv::cuda::DYNAMIC_PARALLELISM</a> = FEATURE_SET_COMPUTE_35
<br/>
 }<tr class="memdesc:ga776cf8e0301b18e19be4782754274fe0"><td class="mdescLeft"> </td><td class="mdescRight">Enumeration providing CUDA computing features.  <a href="../../d8/d40/group__cudacore__init.html#ga776cf8e0301b18e19be4782754274fe0">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga776cf8e0301b18e19be4782754274fe0"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaa1c52258763197958eb9e6681917f723"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#gaa1c52258763197958eb9e6681917f723">cv::cuda::convertFp16</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> _src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> _dst, <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())</td></tr>
<tr class="memdesc:gaa1c52258763197958eb9e6681917f723"><td class="mdescLeft"> </td><td class="mdescRight">Converts an array to half precision floating number.  <a href="../../d8/d40/group__cudacore__init.html#gaa1c52258763197958eb9e6681917f723">More...</a><br/></td></tr>
<tr class="separator:gaa1c52258763197958eb9e6681917f723"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga170b10cc9af4aa8cce8c0afdb4b1d08c"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#ga170b10cc9af4aa8cce8c0afdb4b1d08c">cv::cuda::deviceSupports</a> (<a class="el" href="../../d8/d40/group__cudacore__init.html#ga776cf8e0301b18e19be4782754274fe0">FeatureSet</a> feature_set)</td></tr>
<tr class="memdesc:ga170b10cc9af4aa8cce8c0afdb4b1d08c"><td class="mdescLeft"> </td><td class="mdescRight">checks whether current device supports the given feature  <a href="../../d8/d40/group__cudacore__init.html#ga170b10cc9af4aa8cce8c0afdb4b1d08c">More...</a><br/></td></tr>
<tr class="separator:ga170b10cc9af4aa8cce8c0afdb4b1d08c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaaa93892f9189163e5d53790b4b1e88db"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#gaaa93892f9189163e5d53790b4b1e88db">cv::cuda::getCudaEnabledDeviceCount</a> ()</td></tr>
<tr class="memdesc:gaaa93892f9189163e5d53790b4b1e88db"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of installed CUDA-enabled devices.  <a href="../../d8/d40/group__cudacore__init.html#gaaa93892f9189163e5d53790b4b1e88db">More...</a><br/></td></tr>
<tr class="separator:gaaa93892f9189163e5d53790b4b1e88db"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6ded4ed8e4fc483a9863d31f34ec9c0e"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#ga6ded4ed8e4fc483a9863d31f34ec9c0e">cv::cuda::getDevice</a> ()</td></tr>
<tr class="memdesc:ga6ded4ed8e4fc483a9863d31f34ec9c0e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current device index set by <a class="el" href="../../d8/d40/group__cudacore__init.html#gaefa34186b185de47851836dba537828b" title="Sets a device and initializes it for the current thread. ">cuda::setDevice</a> or initialized by default.  <a href="../../d8/d40/group__cudacore__init.html#ga6ded4ed8e4fc483a9863d31f34ec9c0e">More...</a><br/></td></tr>
<tr class="separator:ga6ded4ed8e4fc483a9863d31f34ec9c0e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa37afdfb8efe85b6252ca2bb8bea8ff2"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#gaa37afdfb8efe85b6252ca2bb8bea8ff2">cv::cuda::printCudaDeviceInfo</a> (int device)</td></tr>
<tr class="separator:gaa37afdfb8efe85b6252ca2bb8bea8ff2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacece2dc1d7962bcc7233c033fe64328b"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#gacece2dc1d7962bcc7233c033fe64328b">cv::cuda::printShortCudaDeviceInfo</a> (int device)</td></tr>
<tr class="separator:gacece2dc1d7962bcc7233c033fe64328b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6153b6f461101374e655a54fc77e725e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#ga6153b6f461101374e655a54fc77e725e">cv::cuda::resetDevice</a> ()</td></tr>
<tr class="memdesc:ga6153b6f461101374e655a54fc77e725e"><td class="mdescLeft"> </td><td class="mdescRight">Explicitly destroys and cleans up all resources associated with the current device in the current process.  <a href="../../d8/d40/group__cudacore__init.html#ga6153b6f461101374e655a54fc77e725e">More...</a><br/></td></tr>
<tr class="separator:ga6153b6f461101374e655a54fc77e725e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaefa34186b185de47851836dba537828b"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d40/group__cudacore__init.html#gaefa34186b185de47851836dba537828b">cv::cuda::setDevice</a> (int device)</td></tr>
<tr class="memdesc:gaefa34186b185de47851836dba537828b"><td class="mdescLeft"> </td><td class="mdescRight">Sets a device and initializes it for the current thread.  <a href="../../d8/d40/group__cudacore__init.html#gaefa34186b185de47851836dba537828b">More...</a><br/></td></tr>
<tr class="separator:gaefa34186b185de47851836dba537828b"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga776cf8e0301b18e19be4782754274fe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga776cf8e0301b18e19be4782754274fe0">◆ </a></span>FeatureSet</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d8/d40/group__cudacore__init.html#ga776cf8e0301b18e19be4782754274fe0">cv::cuda::FeatureSet</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
<p>Enumeration providing CUDA computing features. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0ab34c101b8be1bfbf64fe53db6277639d"></a>FEATURE_SET_COMPUTE_10 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_10</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a82461455d1a5663b49d55c4b21c6ff52"></a>FEATURE_SET_COMPUTE_11 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_11</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0abe959647501a9c973592060723fe9d16"></a>FEATURE_SET_COMPUTE_12 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_12</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0ae1996d5cc9efd9d0db1edb987a6b88b0"></a>FEATURE_SET_COMPUTE_13 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_13</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0ac3b86a55893548ec28d6360b38ef78cd"></a>FEATURE_SET_COMPUTE_20 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_20</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0ac46cbea580480b80f48f9a843b1fca98"></a>FEATURE_SET_COMPUTE_21 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_21</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0aeb9eaa4b4a1be83d87212c4afad9bebb"></a>FEATURE_SET_COMPUTE_30 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_30</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a965876faa336b34a95b781129915766d"></a>FEATURE_SET_COMPUTE_32 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_32</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0acb28f583b1a1e680da03ef1363e96301"></a>FEATURE_SET_COMPUTE_35 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_35</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a4e7aa099ce8d9f1b4c26cb9755a17d11"></a>FEATURE_SET_COMPUTE_50 <div class="python_language">Python: cv.cuda.FEATURE_SET_COMPUTE_50</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a9b148c4a092e640c4e1f5bf54e166c68"></a>GLOBAL_ATOMICS <div class="python_language">Python: cv.cuda.GLOBAL_ATOMICS</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a63dd888f7ac8c7e6716af80bb9580ad5"></a>SHARED_ATOMICS <div class="python_language">Python: cv.cuda.SHARED_ATOMICS</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a86553a98540f6a0fb2656730af504693"></a>NATIVE_DOUBLE <div class="python_language">Python: cv.cuda.NATIVE_DOUBLE</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a22dd302fe5c91cbb63078b4676f58cae"></a>WARP_SHUFFLE_FUNCTIONS <div class="python_language">Python: cv.cuda.WARP_SHUFFLE_FUNCTIONS</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="gga776cf8e0301b18e19be4782754274fe0a2d8ef1fc50ce9e89ea1e058b6ba9df47"></a>DYNAMIC_PARALLELISM <div class="python_language">Python: cv.cuda.DYNAMIC_PARALLELISM</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaa1c52258763197958eb9e6681917f723"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa1c52258763197958eb9e6681917f723">◆ </a></span>convertFp16()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::convertFp16 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>_src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>_dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp; </td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
<p>Converts an array to half precision floating number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_src</td><td>input array. </td></tr>
    <tr><td class="paramname">_dst</td><td>output array. </td></tr>
    <tr><td class="paramname">stream</td><td><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html" title="This class encapsulates a queue of asynchronous calls. ">Stream</a> for the asynchronous version. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d8/d40/group__cudacore__init.html#gaa1c52258763197958eb9e6681917f723" title="Converts an array to half precision floating number. ">convertFp16</a> </dd></dl>
</div>
</div>
<a id="ga170b10cc9af4aa8cce8c0afdb4b1d08c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga170b10cc9af4aa8cce8c0afdb4b1d08c">◆ </a></span>deviceSupports()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::cuda::deviceSupports </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d8/d40/group__cudacore__init.html#ga776cf8e0301b18e19be4782754274fe0">FeatureSet</a> </td>
          <td class="paramname"><em>feature_set</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
<p>checks whether current device supports the given feature </p>
</div>
</div>
<a id="gaaa93892f9189163e5d53790b4b1e88db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaa93892f9189163e5d53790b4b1e88db">◆ </a></span>getCudaEnabledDeviceCount()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::cuda::getCudaEnabledDeviceCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.getCudaEnabledDeviceCount(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
<p>Returns the number of installed CUDA-enabled devices. </p>
<p>Use this function before any other CUDA functions calls. If OpenCV is compiled without CUDA support, this function returns 0. If the CUDA driver is not installed, or is incompatible, this function returns -1. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/dd8/samples_2cpp_2stitching_detailed_8cpp-example.html#a27">samples/cpp/stitching_detailed.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ga6ded4ed8e4fc483a9863d31f34ec9c0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6ded4ed8e4fc483a9863d31f34ec9c0e">◆ </a></span>getDevice()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::cuda::getDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.getDevice(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
<p>Returns the current device index set by <a class="el" href="../../d8/d40/group__cudacore__init.html#gaefa34186b185de47851836dba537828b" title="Sets a device and initializes it for the current thread. ">cuda::setDevice</a> or initialized by default. </p>
</div>
</div>
<a id="gaa37afdfb8efe85b6252ca2bb8bea8ff2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa37afdfb8efe85b6252ca2bb8bea8ff2">◆ </a></span>printCudaDeviceInfo()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::printCudaDeviceInfo </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.cuda.printCudaDeviceInfo(</td><td class="paramname">device</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
</div>
</div>
<a id="gacece2dc1d7962bcc7233c033fe64328b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacece2dc1d7962bcc7233c033fe64328b">◆ </a></span>printShortCudaDeviceInfo()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::printShortCudaDeviceInfo </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.cuda.printShortCudaDeviceInfo(</td><td class="paramname">device</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
</div>
</div>
<a id="ga6153b6f461101374e655a54fc77e725e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6153b6f461101374e655a54fc77e725e">◆ </a></span>resetDevice()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::resetDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.cuda.resetDevice(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
<p>Explicitly destroys and cleans up all resources associated with the current device in the current process. </p>
<p>Any subsequent API call to this device will reinitialize the device. </p>
</div>
</div>
<a id="gaefa34186b185de47851836dba537828b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaefa34186b185de47851836dba537828b">◆ </a></span>setDevice()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::setDevice </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.cuda.setDevice(</td><td class="paramname">device</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">opencv2/core/cuda.hpp</a>&gt;</code></p>
<p>Sets a device and initializes it for the current thread. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">device</td><td>System index of a CUDA device starting with 0.</td></tr>
  </table>
  </dd>
</dl>
<p>If the call of this function is omitted, a default device is initialized at the fist CUDA usage. </p>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:40 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
